package com.wwtech.epp.ui.activity.work.contract;

import android.content.Intent;

import com.wwtech.epp.db.Friend;
import com.wwtech.epp.entity.ProjectEntity;
import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.Map;

/**
 * @author hzp
 * @Package The contract for NewTaskFragment
 * @Description: $description
 * @date 2017/09/16 16:06:07
 */
public interface NewTaskContract {
    interface View extends BaseView<NewTaskContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void onProjectManagerBack(Friend friend);

        void setListData(ProjectEntity projectEntity);

        void jobAddSuccess();

        void loadFileSuccess(int position, String loadUrl);
    }

    interface NewTaskContractPresenter extends BasePresenter {
        void onActivityResult(int requestCode, int resultCode, Intent data);

        void getProjectListFromServer(String desc, int pageNum, int pageSize);

        void newTask(Map map);

        void upLoadFile(String fileName, String filePath, int position);
    }
}